package com.hamster.crmpre.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hamster.crmpre.pojo.PersonalMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface PersonalMessageMapper extends BaseMapper<PersonalMessage> {
    /**
     * 修改消息为已读
     * @param id
     */
    @Update("update personal_message set state = 1 where id = #{id}")
    void updateReadById(String id);
}
